-- GENERATED SPELL FOR [Warpwood Crusher] --


function spell0_13021(pUnit, Event) --@Crush Armor,n/a--
pUnit:FullCastSpellOnTarget(22426,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13021', 30348, 1)
end

function spell1_13021(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(15550,pUnit)
pUnit:RegisterEvent('Sorts_13021', 643, 1)
end

function Sorts_13021(pUnit, Event)
local choix_sorts_13021 = math.random(0, 1)
if choix_sorts_13021 == 0 then
pUnit:RegisterEvent('spell0_13021', 1, 1)
end
if choix_sorts_13021 == 1 then
pUnit:RegisterEvent('spell1_13021', 1, 1)
end
end

function mob13021_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13021', math.random(1500, 3000), 1)
end

function mob13021_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13021_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13021_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13021, 1, 'mob13021_Action')
RegisterUnitEvent(13021, 2, 'mob13021_Leave')
RegisterUnitEvent(13021, 3, 'mob13021_Kill')
RegisterUnitEvent(13021, 4, 'mob13021_Die')
